package com.Atao.service;

import com.Atao.pojo.Category;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryService {
    //添加分类
    void add(Category category);

    //列表查询
    List<Category> list();

    //根据id查询分类信息
    Category findById(Integer id);

    //更新分类
    void update(Category category);

    //删除分类
    void delete(Integer id);

    //Ai删除
    void delete2(String categoryName);

    //根据文章分类名称查询文章id
    Integer getIdByName(String categoryName);
}
